<template>
  <div>
    <van-nav-bar
      title="标题"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    >
      <template #title>
        <img
          src="https://vslc.ncb.edu.cn/img/s6.68fd3b9f.png"
          width="90%"
          alt=""
        />
      </template>
    </van-nav-bar>
    <div>
      <img
        src="https://vslc.ncb.edu.cn/img/trinbanner.0c136ab1.png"
        width="100%"
        alt=""
      />
    </div>
    <div style="width: 100%">
      <van-divider content-position="center">
        <div class="title">
          <img
            src=""
            alt=""
          />
          <span
            style="
              font-size: 14px;
              font-family: Microsoft YaHei UI;
              font-weight: 700;
              color: #41414b;
              margin: 0 10px;
            "
            >成绩查询</span
          >
          <img
            src=""
            alt=""
          />
        </div>
      </van-divider>
      <div class="body">
        <van-form @submit="onSubmit">
          <van-field
            v-model="username"
            name="证件号码"
            label="证件号码"
            placeholder="证件号码"
            :rules="[{ required: true, message: '请填写证件号码' }]"
          />
          <van-field
            v-model="password"
            name="准考证号"
            label="准考证号"
            placeholder="准考证号"
            :rules="[{ required: true, message: '请填写准考证号' }]"
          />
          <div style="margin: 16px">
            <van-button round block type="info" native-type="submit"
              >提交</van-button
            >
          </div>
        </van-form>
      </div>
    </div>
  </div>
</template>

<script>
export default {
   data() {
    return {
      username: '',
      password: '',
    };
  },
  methods: {
onClickLeft(){
  this.$router.push('/grade')
},
    onSubmit(values) {
      console.log('submit', values);
    },
  },
};
</script>

<style scoped>
.model .goin img[data-v-41c5336a] {
  width: 13px;
  height: 11px;
}
.pointer {
  cursor: pointer;
}
.model .goin {
  width: 140px;
  height: 36px;
  background: #0080d8;
  border-radius: 4px;
  font-size: 14px;
  font-family: Microsoft YaHei UI;
  font-weight: 400;
  line-height: 36px;
  color: #fff;
  text-align: center;
  margin-top: 21px;
}
.model .body {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
}
.model .header {
  width: 100%;
  height: 6px;
  background: blue;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}
.body {
  /* display: flex;
  justify-content: center;
  flex-wrap: wrap; */
}
.model {
  box-shadow: 0 3px 20px rgb(0 0 0 / 10%);
  border-radius: 10px;
  margin-bottom: 20px;
  width: 80%;
  padding-bottom: 20px;
}
.title img {
  display: inline-block;
}
.title {
  display: flex;
  justify-items: center;
  align-items: center;
}
</style>